<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

	
<h:head>
	<title>TravelDream - Lista Regali</title>
</h:head>
	<h:body>

<p:panel header="Lista Regali">
	 <p:separator style="margin-bottom:20px"/>



<h:form id="regali">
<p:panel header="regali">

	<p:dataGrid var="all" value="#{viewr.regaliL}" columns="3"
		rows="6" paginator="true"
		paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
		rowsPerPageTemplate="9,12,15" >

        <p:panel header="#{all.nome}" style="text-align:center">
            <h:panelGrid columns="1" style="width:100%">
                

                <h:outputText value="#{all.nome}" />

                <p:commandLink  title="View Detail" action="#{visualizzacmp.showCmp()}" >
                    <h:outputText styleClass="ui-icon ui-icon-search" style="margin:0 auto;" /> 
                    <f:setPropertyActionListener value="#{all}" 
                            target="#{visualizzacmp.selectedComponente}" />
                </p:commandLink>
            </h:panelGrid>
         </p:panel>
	</p:dataGrid>
</p:panel>
<br/>
<p:commandButton value="Indietro" action="index" rendered="true"/>	
</h:form> 	
	

</p:panel>
    
</h:body>

</html>